package ch.fhnw.kosmonauten.client.gui;

import java.awt.Color;
import java.awt.Frame;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

import ch.fhnw.kosmonauten.client.net.ServerConnection;
import ch.fhnw.kosmonauten.model.Dossier;
import ch.fhnw.kosmonauten.model.User;
import ch.fhnw.kosmonauten.net.Request;
import ch.fhnw.kosmonauten.net.Response;
import ch.fhnw.kosmonauten.client.net.ServerConnection;
import ch.fhnw.kosmonauten.client.core.Export;

/**
 * Diese Klasse ermoeglicht den Login.
 * 
 * @author Fabian Siegrist
 * @author Oliver Freiermuth
 * @author Mikhail Onoufrienko
 * @author Risto Milani
 * @version $Revision: 234 $
 *          File name: $HeadURL: http://iching-kosmonauten.googlecode.com/svn/I-Ching/src/ch/fhnw/kosmonauten/client/gui/MainWindow.java $
 *          Last modified:$Date: 2013-05-27 21:42:37 +0000 (Mon, 27 May 2013) $
 *          Last modified by: $Author: molotok.mihon@gmail.com $
 */

// class definition
public class MainWindow extends javax.swing.JFrame {

	// attributes
	private final User user;
	private NewDossier dossier;
	private Dossier newdossier;
	private UserFrame uf;
	private ServerConnection sc;
	private CategoryFrame cf;
	private AdminUserFrame auf;
	private HelpAboutFrame haf;

	// constructor
	/**
	 * 
	 * @param usr
	 */
	public MainWindow(User usr) {
		this.user = usr;
		this.getContentPane().setBackground(Color.LIGHT_GRAY);
		// this.setPreferredSize(new Dimension(1280, 680));
		this.setExtendedState(this.MAXIMIZED_BOTH);
		this.initMenu();
		// this.initComponents();
		this.pack();
		// this.setEmptyDossier();
		this.setVisible(true);
	}

	public NewDossier getDossier() {
		return dossier;
	}

	public void setDossier(User user) {
		dossier = new NewDossier(this, user);
		this.dossier = dossier;
	}
	
	public void loadDossier(Dossier dos)
	{
		
		this.setNewdossier(dos);
		this.jLabel3.setText(this.jLabel13.getText() + dos.getDossierName());
		this.jTextArea1.setText(dos.getQuestion());
		this.jTextArea12.setText(dos.getAnalyse());
		this.jTextArea15.setText(dos.getSynthese());
		this.jTextArea14.setText(dos.getExperience());
		this.jLabel5.setText(dos.getCreateDate());
		this.jLabel6.setText(dos.getEditDate());
		
		if (dos.getPrivacy() == 1)
			this.jRadioButton1.setSelected(true);
		else
			this.jRadioButton2.setSelected(true);
		this.jTextField1.setText("["+Integer.toString(dos.getCategoryID())+"] - " + dos.getCategoryname());
		
	}
	
	// methods
	/**
	 * @return
	 */
	public User getUser() {
		return this.user;
	}

	public void setEmptyDossier() {
		this.setContentPane(new javax.swing.JPanel(new java.awt.BorderLayout()));
		// this.remove(this.getContentPane());
		// this.removeAll();//or remove(JComponent)
		// this.repaint();
	}

	public void initMenu() {
		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
		setTitle(user.displayValue("mw1"));
		setPreferredSize(new java.awt.Dimension(1280, 680));

		jMenuBar1 = new javax.swing.JMenuBar();
		jMenu2 = new javax.swing.JMenu();
		jMenuItem1 = new javax.swing.JMenuItem();
		jMenuItem17 = new javax.swing.JMenuItem();
		jMenuItem18 = new javax.swing.JMenuItem();
		jMenuItem2 = new javax.swing.JMenuItem();
		jMenuItem9 = new javax.swing.JMenuItem();
		jMenuItem16 = new javax.swing.JMenuItem();
		jMenuItem4 = new javax.swing.JMenuItem();
		jMenu6 = new javax.swing.JMenu();
		jMenuItem12 = new javax.swing.JMenuItem();
		jMenuItem13 = new javax.swing.JMenuItem();
		jMenu3 = new javax.swing.JMenu();
		jMenuItem7 = new javax.swing.JMenuItem();
		jMenu7 = new javax.swing.JMenu();
		jMenuItem10 = new javax.swing.JMenuItem();
		jMenuItem8 = new javax.swing.JMenuItem();
		jMenu5 = new javax.swing.JMenu();
		jMenuItem20 = new javax.swing.JMenuItem();

		jMenu2.setText(user.displayValue("mw2"));

		jMenuItem1.setText(user.displayValue("mw3"));
		jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
			@Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem1ActionPerformed(evt);
			}
		});
		jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem7ActionPerformed(evt);
            }
        });
		jMenu2.add(jMenuItem1);

		jMenuItem17.setText(user.displayValue("mw4"));
		jMenuItem17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem17ActionPerformed(evt);
            }
        });
		jMenu2.add(jMenuItem17);

		jMenuItem18.setText(user.displayValue("mw5"));
		jMenu2.add(jMenuItem18);
		jMenuItem18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem18ActionPerformed(evt);
            }
        });

		jMenuItem2.setText(user.displayValue("mw6"));
		jMenu2.add(jMenuItem2);

		jMenuItem9.setText(user.displayValue("mw7"));
		jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem9ActionPerformed(evt);
            }
        });
		jMenu2.add(jMenuItem9);

		jMenuItem16.setText(user.displayValue("mw10"));
		jMenu2.add(jMenuItem16);

		jMenuItem4.setText(user.displayValue("mw11"));
		jMenu2.add(jMenuItem4);
		jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });

		jMenuBar1.add(jMenu2);

		jMenu6.setText(user.displayValue("mw12"));

		jMenuItem12.setText(user.displayValue("mw13"));
		jMenuItem12.addActionListener(new java.awt.event.ActionListener() {
			@Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem12ActionPerformed(evt);
			}
		});
		jMenu6.add(jMenuItem12);

		jMenuItem13.setText(user.displayValue("mw14"));
		jMenuItem13.addActionListener(new java.awt.event.ActionListener() {
			@Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem13ActionPerformed(evt);
			}
		});
		jMenu6.add(jMenuItem13);

		jMenuBar1.add(jMenu6);

		jMenu3.setText(user.displayValue("mw17"));

		jMenuItem7.setText(user.displayValue("mw18"));
		jMenu3.add(jMenuItem7);

		jMenuBar1.add(jMenu3);
		
		jMenu7.setText(user.displayValue("mw22"));
		

		jMenuItem10.setText(user.displayValue("mw23"));
		jMenuItem10.addActionListener(new java.awt.event.ActionListener() {
			@Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem10ActionPerformed(evt);
			}
		});
		jMenu7.add(jMenuItem10);
		
		jMenuItem8.setText(user.displayValue("mw24"));
		jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
			@Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem8ActionPerformed(evt);
			}
		});
		jMenu7.add(jMenuItem8);
		
		if (user.getRole().equalsIgnoreCase("Admin")){
		jMenuBar1.add(jMenu7);
		}

		jMenu5.setText(user.displayValue("mw26"));
		jMenu5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
		jMenu5.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
		jMenuBar1.add(jMenu5);
		
		setJMenuBar(jMenuBar1);
		
		jMenuItem20.setText(user.displayValue("mw136"));
		jMenuItem20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem20ActionPerformed(evt);
            }
        });

		jMenu5.add(jMenuItem20);

	}

	/**
	 * @param dossiername
	 * @param category
	 * @param privacy
	 */
	protected void initComponents(String dossiername, String category, int privacy) {

		newdossier = new Dossier();
		newdossier.setDossierName(dossiername);
		newdossier.setCategoryID(Integer.parseInt((category.split("\\[")[1].split("\\]")[0])));
		newdossier.setPrivacy(privacy);
		newdossier.setUserID(this.user.getId());
		
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		newdossier.setCreateDate(format.format(new Date()));
		
		jPanel1 = new javax.swing.JPanel();
		jPanel17 = new javax.swing.JPanel();
		jScrollPane15 = new javax.swing.JScrollPane();
		jTextArea15 = new javax.swing.JTextArea();
		jLabel14 = new javax.swing.JLabel();
		jPanel3 = new javax.swing.JPanel();
		jLabel3 = new javax.swing.JLabel();
		jRadioButton1 = new javax.swing.JRadioButton();
		jRadioButton2 = new javax.swing.JRadioButton();
		jLabel1 = new javax.swing.JLabel();
		jLabel4 = new javax.swing.JLabel();
		jLabel5 = new javax.swing.JLabel();
		jLabel6 = new javax.swing.JLabel();
		jTextField1 = new javax.swing.JTextField();
		jPanel2 = new javax.swing.JPanel();
		jScrollPane1 = new javax.swing.JScrollPane();
		jTextArea1 = new javax.swing.JTextArea();
		jLabel2 = new javax.swing.JLabel();
		jTabbedPane2 = new javax.swing.JTabbedPane();
		
		nuclearPanel1 = new ch.fhnw.kosmonauten.client.gui.HGPanel(false, user);
		hGPanel1 = new ch.fhnw.kosmonauten.client.gui.HGPanel(false, user);
		hGPanel2 = new ch.fhnw.kosmonauten.client.gui.HGPanel(false, user);
		hGPanel3 = new ch.fhnw.kosmonauten.client.gui.HGPanel(false, user);
		hGPanel4 = new ch.fhnw.kosmonauten.client.gui.HGPanel(false, user);
		situationPanel2 = new ch.fhnw.kosmonauten.client.gui.SituationPanel(
				false, newdossier, user, hGPanel4, nuclearPanel1, hGPanel1, hGPanel2, hGPanel3, this);
		jPanel16 = new javax.swing.JPanel();
		jScrollPane14 = new javax.swing.JScrollPane();
		jTextArea14 = new javax.swing.JTextArea();
		jLabel13 = new javax.swing.JLabel();
		jPanel14 = new javax.swing.JPanel();
		jScrollPane12 = new javax.swing.JScrollPane();
		jTextArea12 = new javax.swing.JTextArea();
		jLabel11 = new javax.swing.JLabel();
		jButton1 = new javax.swing.JButton();

		bGroup = new javax.swing.ButtonGroup();

		jPanel17.setBorder(javax.swing.BorderFactory
				.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
		jPanel17.setForeground(new java.awt.Color(255, 255, 255));
		jPanel17.setLayout(new java.awt.BorderLayout());

		jTextArea15.setColumns(20);
		jTextArea15.setRows(5);
		jScrollPane15.setViewportView(jTextArea15);

		jPanel17.add(jScrollPane15, java.awt.BorderLayout.CENTER);

		jLabel14.setBackground(new java.awt.Color(204, 204, 255));
		jLabel14.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jLabel14.setText(user.displayValue("mw27"));
		jLabel14.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		jPanel17.add(jLabel14, java.awt.BorderLayout.PAGE_START);

		jPanel3.setBorder(javax.swing.BorderFactory
				.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

		jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jLabel3.setText(user.displayValue("mw28") + dossiername);
		jLabel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());

		jRadioButton1.setText(user.displayValue("mw29"));
		jRadioButton2.setText(user.displayValue("mw30"));

		bGroup.add(jRadioButton1);
		bGroup.add(jRadioButton2);
		if (newdossier.getPrivacy() == 1)
			jRadioButton1.setSelected(true);
		else
			jRadioButton2.setSelected(true);

		jLabel1.setText(user.displayValue("mw31"));

		jLabel4.setText(user.displayValue("mw32"));

		jLabel5.setText(newdossier.getCreateDate());

		jLabel6.setText("");

		jTextField1.setText(category);
		jTextField1.setEditable(false);
		javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(
				jPanel3);
		jPanel3.setLayout(jPanel3Layout);
		jPanel3Layout
				.setHorizontalGroup(jPanel3Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addComponent(jLabel3,
								javax.swing.GroupLayout.DEFAULT_SIZE,
								javax.swing.GroupLayout.DEFAULT_SIZE,
								Short.MAX_VALUE)
						.addGroup(
								jPanel3Layout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(jLabel1)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabel5)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabel4)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabel6)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
										.addComponent(jRadioButton2)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
										.addComponent(jRadioButton1)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jTextField1,
												0,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)
										.addContainerGap()));
		jPanel3Layout
				.setVerticalGroup(jPanel3Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel3Layout
										.createSequentialGroup()
										.addComponent(jLabel3)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel3Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel1)
														.addComponent(jLabel5)
														.addComponent(jLabel4)
														.addComponent(jLabel6)
														.addComponent(
																jRadioButton2)
														.addComponent(
																jRadioButton1)
														.addComponent(
																jTextField1,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addContainerGap(
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)));

		jPanel2.setBorder(javax.swing.BorderFactory
				.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
		jPanel2.setForeground(new java.awt.Color(255, 255, 255));
		jPanel2.setLayout(new java.awt.BorderLayout());

		jTextArea1.setColumns(20);
		jTextArea1.setRows(5);
		jScrollPane1.setViewportView(jTextArea1);

		jPanel2.add(jScrollPane1, java.awt.BorderLayout.CENTER);

		jLabel2.setBackground(new java.awt.Color(204, 204, 255));
		jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jLabel2.setText(user.displayValue("mw33"));
		jLabel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		jPanel2.add(jLabel2, java.awt.BorderLayout.PAGE_START);

		jTabbedPane2.setTabPlacement(javax.swing.JTabbedPane.LEFT);
		jTabbedPane2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jTabbedPane2.addTab("SITUATION", situationPanel2);
		jTabbedPane2.addTab("PERSPECTVE", hGPanel4);
		jTabbedPane2.addTab("NUCLEAR", nuclearPanel1);
		jTabbedPane2.addTab("INVERSE", hGPanel1);
		jTabbedPane2.addTab("REVERSE", hGPanel2);
		jTabbedPane2.addTab("FUXI", hGPanel3);

		jPanel16.setBorder(javax.swing.BorderFactory
				.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
		jPanel16.setForeground(new java.awt.Color(255, 255, 255));
		jPanel16.setLayout(new java.awt.BorderLayout());

		jTextArea14.setColumns(20);
		jTextArea14.setRows(5);
		jScrollPane14.setViewportView(jTextArea14);

		jPanel16.add(jScrollPane14, java.awt.BorderLayout.CENTER);

		jLabel13.setBackground(new java.awt.Color(204, 204, 255));
		jLabel13.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jLabel13.setText(user.displayValue("mw34"));
		jLabel13.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		jPanel16.add(jLabel13, java.awt.BorderLayout.PAGE_START);

		jPanel14.setBorder(javax.swing.BorderFactory
				.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
		jPanel14.setForeground(new java.awt.Color(255, 255, 255));
		jPanel14.setLayout(new java.awt.BorderLayout());

		jTextArea12.setColumns(20);
		jTextArea12.setRows(5);
		jScrollPane12.setViewportView(jTextArea12);

		jPanel14.add(jScrollPane12, java.awt.BorderLayout.CENTER);

		jLabel11.setBackground(new java.awt.Color(204, 204, 255));
		jLabel11.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jLabel11.setText(user.displayValue("mw35"));
		jLabel11.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		jPanel14.add(jLabel11, java.awt.BorderLayout.PAGE_START);

		jButton1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jButton1.setText(user.displayValue("mw36"));
		jButton1.addActionListener(new java.awt.event.ActionListener() {
			@Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton1ActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(
				jPanel1);
		jPanel1.setLayout(jPanel1Layout);
		jPanel1Layout
				.setHorizontalGroup(jPanel1Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								jPanel1Layout
										.createSequentialGroup()
										.addGroup(
												jPanel1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel1Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																						.addComponent(
																								jPanel14,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								287,
																								Short.MAX_VALUE)
																						.addComponent(
																								jPanel17,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.addComponent(
																								jPanel16,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED))
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addComponent(
																				jPanel2,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
										.addGroup(
												jPanel1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING,
																false)
														.addComponent(
																jTabbedPane2)
														.addComponent(
																jPanel3,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																jButton1,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE))));
		jPanel1Layout
				.setVerticalGroup(jPanel1Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel1Layout
										.createSequentialGroup()
										.addGroup(
												jPanel1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addComponent(
																				jPanel2,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				125,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addGap(9,
																				9,
																				9)
																		.addComponent(
																				jPanel14,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jPanel17,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																		.addComponent(
																				jPanel16,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				125,
																				javax.swing.GroupLayout.PREFERRED_SIZE))
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addComponent(
																				jPanel3,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jTabbedPane2,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				562,
																				Short.MAX_VALUE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jButton1)))
										.addContainerGap()));

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addComponent(
				jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
				javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
		layout.setVerticalGroup(layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				layout.createSequentialGroup()
						.addComponent(jPanel1,
								javax.swing.GroupLayout.DEFAULT_SIZE,
								javax.swing.GroupLayout.DEFAULT_SIZE,
								Short.MAX_VALUE).addContainerGap()));

		
	}// </editor-fold>

	
	/**
	 * @param dossiername
	 * @param category
	 * @param privacy
	 */
	protected void initComponents() {
		
		jPanel1 = new javax.swing.JPanel();
		jPanel17 = new javax.swing.JPanel();
		jScrollPane15 = new javax.swing.JScrollPane();
		jTextArea15 = new javax.swing.JTextArea();
		jLabel14 = new javax.swing.JLabel();
		jPanel3 = new javax.swing.JPanel();
		jLabel3 = new javax.swing.JLabel();
		jRadioButton1 = new javax.swing.JRadioButton();
		jRadioButton2 = new javax.swing.JRadioButton();
		jLabel1 = new javax.swing.JLabel();
		jLabel4 = new javax.swing.JLabel();
		jLabel5 = new javax.swing.JLabel();
		jLabel6 = new javax.swing.JLabel();
		jTextField1 = new javax.swing.JTextField();
		jPanel2 = new javax.swing.JPanel();
		jScrollPane1 = new javax.swing.JScrollPane();
		jTextArea1 = new javax.swing.JTextArea();
		jLabel2 = new javax.swing.JLabel();
		jTabbedPane2 = new javax.swing.JTabbedPane();
		
		nuclearPanel1 = new ch.fhnw.kosmonauten.client.gui.HGPanel(false, user);
		hGPanel1 = new ch.fhnw.kosmonauten.client.gui.HGPanel(false, user);
		hGPanel2 = new ch.fhnw.kosmonauten.client.gui.HGPanel(false, user);
		hGPanel3 = new ch.fhnw.kosmonauten.client.gui.HGPanel(false, user);
		hGPanel4 = new ch.fhnw.kosmonauten.client.gui.HGPanel(false, user);
		situationPanel2 = new ch.fhnw.kosmonauten.client.gui.SituationPanel(
				false, newdossier, user, hGPanel4, nuclearPanel1, hGPanel1, hGPanel2, hGPanel3, this);
		jPanel16 = new javax.swing.JPanel();
		jScrollPane14 = new javax.swing.JScrollPane();
		jTextArea14 = new javax.swing.JTextArea();
		jLabel13 = new javax.swing.JLabel();
		jPanel14 = new javax.swing.JPanel();
		jScrollPane12 = new javax.swing.JScrollPane();
		jTextArea12 = new javax.swing.JTextArea();
		jLabel11 = new javax.swing.JLabel();
		jButton1 = new javax.swing.JButton();

		bGroup = new javax.swing.ButtonGroup();

		jPanel17.setBorder(javax.swing.BorderFactory
				.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
		jPanel17.setForeground(new java.awt.Color(255, 255, 255));
		jPanel17.setLayout(new java.awt.BorderLayout());

		jTextArea15.setColumns(20);
		jTextArea15.setRows(5);
		jScrollPane15.setViewportView(jTextArea15);

		jPanel17.add(jScrollPane15, java.awt.BorderLayout.CENTER);

		jLabel14.setBackground(new java.awt.Color(204, 204, 255));
		jLabel14.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jLabel14.setText(user.displayValue("mw27"));
		jLabel14.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		jPanel17.add(jLabel14, java.awt.BorderLayout.PAGE_START);

		jPanel3.setBorder(javax.swing.BorderFactory
				.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

		jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jLabel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());

		jRadioButton1.setText(user.displayValue("mw29"));
		jRadioButton2.setText(user.displayValue("mw30"));

		bGroup.add(jRadioButton1);
		bGroup.add(jRadioButton2);

		jLabel1.setText(user.displayValue("mw31"));

		jLabel4.setText(user.displayValue("mw32"));

		jLabel6.setText("");

		jTextField1.setEditable(false);
		javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(
				jPanel3);
		jPanel3.setLayout(jPanel3Layout);
		jPanel3Layout
				.setHorizontalGroup(jPanel3Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addComponent(jLabel3,
								javax.swing.GroupLayout.DEFAULT_SIZE,
								javax.swing.GroupLayout.DEFAULT_SIZE,
								Short.MAX_VALUE)
						.addGroup(
								jPanel3Layout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(jLabel1)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabel5)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabel4)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabel6)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
										.addComponent(jRadioButton2)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
										.addComponent(jRadioButton1)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jTextField1,
												0,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)
										.addContainerGap()));
		jPanel3Layout
				.setVerticalGroup(jPanel3Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel3Layout
										.createSequentialGroup()
										.addComponent(jLabel3)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel3Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel1)
														.addComponent(jLabel5)
														.addComponent(jLabel4)
														.addComponent(jLabel6)
														.addComponent(
																jRadioButton2)
														.addComponent(
																jRadioButton1)
														.addComponent(
																jTextField1,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addContainerGap(
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)));

		jPanel2.setBorder(javax.swing.BorderFactory
				.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
		jPanel2.setForeground(new java.awt.Color(255, 255, 255));
		jPanel2.setLayout(new java.awt.BorderLayout());

		jTextArea1.setColumns(20);
		jTextArea1.setRows(5);
		jScrollPane1.setViewportView(jTextArea1);

		jPanel2.add(jScrollPane1, java.awt.BorderLayout.CENTER);

		jLabel2.setBackground(new java.awt.Color(204, 204, 255));
		jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jLabel2.setText(user.displayValue("mw33"));
		jLabel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		jPanel2.add(jLabel2, java.awt.BorderLayout.PAGE_START);

		jTabbedPane2.setTabPlacement(javax.swing.JTabbedPane.LEFT);
		jTabbedPane2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jTabbedPane2.addTab("SITUATION", situationPanel2);
		jTabbedPane2.addTab("PERSPECTVE", hGPanel4);
		jTabbedPane2.addTab("NUCLEAR", nuclearPanel1);
		jTabbedPane2.addTab("INVERSE", hGPanel1);
		jTabbedPane2.addTab("REVERSE", hGPanel2);
		jTabbedPane2.addTab("FUXI", hGPanel3);

		jPanel16.setBorder(javax.swing.BorderFactory
				.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
		jPanel16.setForeground(new java.awt.Color(255, 255, 255));
		jPanel16.setLayout(new java.awt.BorderLayout());

		jTextArea14.setColumns(20);
		jTextArea14.setRows(5);
		jScrollPane14.setViewportView(jTextArea14);

		jPanel16.add(jScrollPane14, java.awt.BorderLayout.CENTER);

		jLabel13.setBackground(new java.awt.Color(204, 204, 255));
		jLabel13.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jLabel13.setText(user.displayValue("mw34"));
		jLabel13.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		jPanel16.add(jLabel13, java.awt.BorderLayout.PAGE_START);

		jPanel14.setBorder(javax.swing.BorderFactory
				.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
		jPanel14.setForeground(new java.awt.Color(255, 255, 255));
		jPanel14.setLayout(new java.awt.BorderLayout());

		jTextArea12.setColumns(20);
		jTextArea12.setRows(5);
		jScrollPane12.setViewportView(jTextArea12);

		jPanel14.add(jScrollPane12, java.awt.BorderLayout.CENTER);

		jLabel11.setBackground(new java.awt.Color(204, 204, 255));
		jLabel11.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jLabel11.setText(user.displayValue("mw35"));
		jLabel11.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		jPanel14.add(jLabel11, java.awt.BorderLayout.PAGE_START);

		jButton1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
		jButton1.setText(user.displayValue("mw36"));
		jButton1.addActionListener(new java.awt.event.ActionListener() {
			@Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jButton1ActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(
				jPanel1);
		jPanel1.setLayout(jPanel1Layout);
		jPanel1Layout
				.setHorizontalGroup(jPanel1Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								jPanel1Layout
										.createSequentialGroup()
										.addGroup(
												jPanel1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addGroup(
																				jPanel1Layout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																						.addComponent(
																								jPanel14,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								287,
																								Short.MAX_VALUE)
																						.addComponent(
																								jPanel17,
																								javax.swing.GroupLayout.Alignment.LEADING,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.addComponent(
																								jPanel16,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED))
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addComponent(
																				jPanel2,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
										.addGroup(
												jPanel1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING,
																false)
														.addComponent(
																jTabbedPane2)
														.addComponent(
																jPanel3,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																jButton1,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE))));
		jPanel1Layout
				.setVerticalGroup(jPanel1Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel1Layout
										.createSequentialGroup()
										.addGroup(
												jPanel1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addComponent(
																				jPanel2,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				125,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addGap(9,
																				9,
																				9)
																		.addComponent(
																				jPanel14,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jPanel17,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																		.addComponent(
																				jPanel16,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				125,
																				javax.swing.GroupLayout.PREFERRED_SIZE))
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addComponent(
																				jPanel3,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jTabbedPane2,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				562,
																				Short.MAX_VALUE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jButton1)))
										.addContainerGap()));

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addComponent(
				jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
				javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
		layout.setVerticalGroup(layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				layout.createSequentialGroup()
						.addComponent(jPanel1,
								javax.swing.GroupLayout.DEFAULT_SIZE,
								javax.swing.GroupLayout.DEFAULT_SIZE,
								Short.MAX_VALUE).addContainerGap()));

		
	}// </editor-fold>
	/**
	 * @param evt
	 */
	private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
		dossier = new NewDossier(this, this.user);
	}
	
	private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {                                           
        this.dispose();
        System.exit(0); 
    }
	
	private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {                                           
		auf = new AdminUserFrame(user); 
    }
	
	private void jMenuItem10ActionPerformed(java.awt.event.ActionEvent evt) {                                           
		auf = new AdminUserFrame(user);
    }
	
	/**
	 * @param evt
	 */
	private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {
		if (uf == null)
			uf = new UserFrame(user, "user");
		else
			uf.setVisible(true);
	}
	
	/**
	 * @param evt
	 */
	private void jMenuItem12ActionPerformed(java.awt.event.ActionEvent evt) {
			cf = new CategoryFrame(user);
	}
	
	/**
	 * @param evt
	 */
	private void jMenuItem13ActionPerformed(java.awt.event.ActionEvent evt) {
			cf = new CategoryFrame(user);
	}
	
	/**
	 * @param evt
	 */
	private void jMenuItem18ActionPerformed(java.awt.event.ActionEvent evt) {
			//Dossier LADEN
		LoadDossier ld = new LoadDossier(user, this);
	}
	

	/**
	 * @param evt
	 */
	private void jMenuItem20ActionPerformed(java.awt.event.ActionEvent evt) {
			haf = new HelpAboutFrame(user);
	}
	


	private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) {                                           
		// Dossier exportieren
		if (newdossier != null)
		if (newdossier.isBounded()) {
			situationPanel2.bindDossier();
			new Export(newdossier);
		}
    }
	

	/**
	 * @param evt
	 */
	private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
		// Collect all active frames in a array
		Frame[] activeframes = JFrame.getFrames();

		for (int i = 0; i < activeframes.length; i++) {
			if (!activeframes[i].getTitle().equals(this.getTitle()))
				activeframes[i].dispose();
		}
	}
	
	private void jMenuItem17ActionPerformed(java.awt.event.ActionEvent evt) {                                            
        if (newdossier != null)
        {"".replace("'", "''");
        	if (newdossier.isBounded())
        	{
        		situationPanel2.bindDossier();
        		sc = new ServerConnection();
        		Response resp = sc.sendRequest(new Request(this.newdossier,"saveAsDossier"));
        		if (resp == null)
        			new ErrorDialog(user.displayValue("mw82"));
        		else if (resp.getContent() instanceof Boolean) 
        		{
        			boolean ok = (Boolean) resp.getContent();
        			if (ok)
        			{
        				new ErrorDialog(10, JOptionPane.INFORMATION_MESSAGE, user);
        			}
        			else
        			{
        				new ErrorDialog(4, JOptionPane.ERROR_MESSAGE, user);
        			}	
        				
        		}else if (resp.getContent() == null )
        		{
        			new ErrorDialog(5, JOptionPane.ERROR_MESSAGE, user);
        		}
        		else
        			new ErrorDialog(resp.getContent().toString());
        	}
        	else
        		new ErrorDialog(8, JOptionPane.INFORMATION_MESSAGE, user);
        }
        else
        	new ErrorDialog(9, JOptionPane.INFORMATION_MESSAGE, user);
        	
    } 

	// Variables declaration - do not modify
	private ch.fhnw.kosmonauten.client.gui.HGPanel hGPanel1;
	private ch.fhnw.kosmonauten.client.gui.HGPanel hGPanel2;
	private ch.fhnw.kosmonauten.client.gui.HGPanel hGPanel3;
	private ch.fhnw.kosmonauten.client.gui.HGPanel hGPanel4;
	private javax.swing.JButton jButton1;
	private javax.swing.JTextField jTextField1;
	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel11;
	private javax.swing.JLabel jLabel13;
	private javax.swing.JLabel jLabel14;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JLabel jLabel3;
	private javax.swing.JLabel jLabel4;
	private javax.swing.JLabel jLabel5;
	private javax.swing.JLabel jLabel6;
	private javax.swing.JMenu jMenu2;
	private javax.swing.JMenu jMenu3;
	private javax.swing.JMenu jMenu5;
	private javax.swing.JMenu jMenu6;
	private javax.swing.JMenu jMenu7;
	private javax.swing.JMenuItem jMenuItem8;
	private javax.swing.JMenuBar jMenuBar1;
	private javax.swing.JMenuItem jMenuItem1;
	private javax.swing.JMenuItem jMenuItem10;
	private javax.swing.JMenuItem jMenuItem12;
	private javax.swing.JMenuItem jMenuItem13;
	private javax.swing.JMenuItem jMenuItem16;
	private javax.swing.JMenuItem jMenuItem17;
	private javax.swing.JMenuItem jMenuItem18;
	private javax.swing.JMenuItem jMenuItem2;
	private javax.swing.JMenuItem jMenuItem4;
	private javax.swing.JMenuItem jMenuItem7;
	private javax.swing.JMenuItem jMenuItem9;
	private javax.swing.JMenuItem jMenuItem20;
	private javax.swing.JPanel jPanel1;
	private javax.swing.JPanel jPanel14;
	private javax.swing.JPanel jPanel16;
	private javax.swing.JPanel jPanel17;
	private javax.swing.JPanel jPanel2;
	private javax.swing.JPanel jPanel3;
	private javax.swing.JRadioButton jRadioButton1;
	private javax.swing.JRadioButton jRadioButton2;
	private javax.swing.JScrollPane jScrollPane1;
	private javax.swing.JScrollPane jScrollPane12;
	private javax.swing.JScrollPane jScrollPane14;
	private javax.swing.JScrollPane jScrollPane15;
	private javax.swing.JTabbedPane jTabbedPane2;
	private javax.swing.JTextArea jTextArea1;
	private javax.swing.JTextArea jTextArea12;
	private javax.swing.JTextArea jTextArea14;
	private javax.swing.JTextArea jTextArea15;
	private ch.fhnw.kosmonauten.client.gui.HGPanel nuclearPanel1;
	private ch.fhnw.kosmonauten.client.gui.SituationPanel situationPanel2;
	
	public ch.fhnw.kosmonauten.client.gui.SituationPanel getSituationPanel2() {
		return situationPanel2;
	}

	private javax.swing.ButtonGroup bGroup;
	// End of variables declaration
	
	public Dossier getNewdossier() {
		return newdossier;
	}

	public void setNewdossier(Dossier newdossier) {
		this.newdossier = newdossier;
	}
	public javax.swing.JRadioButton getjRadioButton1() {
		return jRadioButton1;
	}

	public void setjRadioButton1(javax.swing.JRadioButton jRadioButton1) {
		this.jRadioButton1 = jRadioButton1;
	}
	
	public javax.swing.JTextArea getjTextArea1() {
		return jTextArea1;
	}

	public void setjTextArea1(javax.swing.JTextArea jTextArea1) {
		this.jTextArea1 = jTextArea1;
	}

	public javax.swing.JTextArea getjTextArea12() {
		return jTextArea12;
	}

	public void setjTextArea12(javax.swing.JTextArea jTextArea12) {
		this.jTextArea12 = jTextArea12;
	}

	public javax.swing.JTextArea getjTextArea14() {
		return jTextArea14;
	}

	public void setjTextArea14(javax.swing.JTextArea jTextArea14) {
		this.jTextArea14 = jTextArea14;
	}

	public javax.swing.JTextArea getjTextArea15() {
		return jTextArea15;
	}

	public void setjTextArea15(javax.swing.JTextArea jTextArea15) {
		this.jTextArea15 = jTextArea15;
	}
}
